﻿# -*- coding: utf-8 -*-
import time

from odoo import api, fields, models, _
import odoo.addons.decimal_precision as dp
from odoo.exceptions import UserError
import calendar
class FHsaasMK_FHsaasTB(models.TransientModel):
    _name = 'FHsaasMK.FHsaasTB'
    _description = u'FHsaasZW'
    #deposit_account_id = fields.Many2one("account.account", string="Income Account", domain=[('deprecated', '=', False)],
FHSAAS_columns			
	
	

    def action_cancel(self):
        """
        Closes Phonecall to Phonecall form
        """
        return {'type':'ir.actions.act_window_close'}		     
    def ziyuanxd_fdcrm_create(self):
	
        #lead_ids = self.env.context.get('active_ids', [])
        #print(lead_ids)		
        #self.env.cr.execute('''  update finance_tbpayrecord_line  set  "Fstatus"=%s where "id"=%s   '''%('1',1))	
	
        value = {
            'name': '查询向导',			
            'view_type': 'form',
            'view_mode': 'tree,form',
            'res_model': '目标模块.TB替换',
            #'res_id': 1,
            'views': [(False, 'tree'),(False, 'form')],
            'type': 'ir.actions.act_window',
            #'domain':domaincontext ,					
        }		
		
        return value		
FHsaasMK_FHsaasTB()
